<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: block.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('block_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">block.h</div></div>
</div><!--header-->
<div class="contents">
<a href="block_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * block.h -- block transfer</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Copyright (C) 2010-2012,2014-2015 Olaf Bergmann &lt;bergmann@tzi.org&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * This file is part of the CoAP library libcoap. Please see README for terms</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * of use.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> */</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#ifndef COAP_BLOCK_H_</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#define COAP_BLOCK_H_</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &quot;<a class="code" href="encode_8h.html">encode.h</a>&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &quot;<a class="code" href="option_8h.html">option.h</a>&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;<a class="code" href="pdu_8h.html">pdu.h</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__resource__t.html">coap_resource_t</a>;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a>;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#ifndef COAP_MAX_BLOCK_SZX</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="group__block.html#ga1a064effcefd02b9e5c8f99b297c0edc">   30</a></span><span class="preprocessor">#define COAP_MAX_BLOCK_SZX      6</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#endif </span><span class="comment">/* COAP_MAX_BLOCK_SZX */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="foldopen" id="foldopen00036" data-start="{" data-end="};">
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structcoap__block__t.html">   36</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structcoap__block__t.html#a601d49b58bb18aa216e7bc5410076af9">   37</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__block__t.html#a601d49b58bb18aa216e7bc5410076af9">num</a>;       </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structcoap__block__t.html#ab853b0f192d874e5c0fc5d054348731d">   38</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__block__t.html#ab853b0f192d874e5c0fc5d054348731d">m</a>:1;       </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structcoap__block__t.html#aaeb4409b7a94cc0de61ea7657996d329">   39</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="structcoap__block__t.html#aaeb4409b7a94cc0de61ea7657996d329">szx</a>:3;     </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>} <a class="code hl_struct" href="structcoap__block__t.html">coap_block_t</a>;</div>
</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="foldopen" id="foldopen00047" data-start="" data-end="">
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="group__block.html#gad7d63d1ac6f4e326be162f5fb1ee48d9">   47</a></span><span class="preprocessor">#define COAP_OPT_BLOCK_LAST(opt) \</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">  (coap_opt_length(opt) ? (coap_opt_value(opt) + (coap_opt_length(opt)-1)) : 0)</span></div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="foldopen" id="foldopen00051" data-start="" data-end="">
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="group__block.html#ga9e87e4bbd861945d9d1cc672c781662b">   51</a></span><span class="preprocessor">#define COAP_OPT_BLOCK_MORE(opt) \</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">  (coap_opt_length(opt) ? (*COAP_OPT_BLOCK_LAST(opt) &amp; 0x08) : 0)</span></div>
</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="foldopen" id="foldopen00055" data-start="" data-end="">
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="group__block.html#ga3b14a086973dff06815f999b6c873429">   55</a></span><span class="preprocessor">#define COAP_OPT_BLOCK_SZX(opt)  \</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="preprocessor">  (coap_opt_length(opt) ? (*COAP_OPT_BLOCK_LAST(opt) &amp; 0x07) : 0)</span></div>
</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code hl_function" href="group__block.html#gaac6c90297abc6e2da80a6212b0d10e99">coap_opt_block_num</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *block_opt);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">int</span></div>
<div class="foldopen" id="foldopen00068" data-start="{" data-end="}">
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="group__block.html#gaa67d14fa889f79afee9762dab7fc83e4">   68</a></span><a class="code hl_function" href="group__block.html#gaa67d14fa889f79afee9762dab7fc83e4">coap_more_blocks</a>(<span class="keywordtype">size_t</span> data_len, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> num, uint16_t szx) {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>  <span class="keywordflow">return</span> ((num+1) &lt;&lt; (szx + 4)) &lt; data_len;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>}</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span><span class="preprocessor">#if 0</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>coap_opt_block_set_m(<a class="code hl_typedef" href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a> *block_opt, <span class="keywordtype">int</span> m) {</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>  <span class="keywordflow">if</span> (m)</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>    *(<a class="code hl_function" href="group__opt__filter.html#gaec4e944d39722779cac610ed22ee09db">coap_opt_value</a>(block_opt) + (<a class="code hl_function" href="group__opt__filter.html#gaac65919c93f7047b687d33af9672b3ea">coap_opt_length</a>(block_opt) - 1)) |= 0x08;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>  <span class="keywordflow">else</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    *(<a class="code hl_function" href="group__opt__filter.html#gaec4e944d39722779cac610ed22ee09db">coap_opt_value</a>(block_opt) + (<a class="code hl_function" href="group__opt__filter.html#gaac65919c93f7047b687d33af9672b3ea">coap_opt_length</a>(block_opt) - 1)) &amp;= ~0x08;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>}</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__block.html#ga714d943bd85123de1b8b6f86ec204a69">coap_get_block</a>(<a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu, uint16_t type, <a class="code hl_struct" href="structcoap__block__t.html">coap_block_t</a> *block);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__block.html#ga0462e5c93460d2df1c60611188192524">coap_write_block_opt</a>(<a class="code hl_struct" href="structcoap__block__t.html">coap_block_t</a> *block,</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>                         uint16_t type,</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>                         <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu,</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>                         <span class="keywordtype">size_t</span> data_length);</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__block.html#ga0a90438f60d08abd88da955ec895cedb">coap_add_block</a>(<a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu,</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>                   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> len,</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>                   <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data,</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>                   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> block_num,</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>                   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> block_szx);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span><a class="code hl_function" href="group__block.html#ga38c1e9829062e3e2ce621641f1ae59c5">coap_add_data_blocked_response</a>(<span class="keyword">struct</span> <a class="code hl_struct" href="structcoap__resource__t.html">coap_resource_t</a> *resource,</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>                               <span class="keyword">struct</span> <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *session,</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>                               <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request,</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>                               <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *response,</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>                               <span class="keyword">const</span> <a class="code hl_struct" href="structcoap__binary__t.html">coap_binary_t</a> *token,</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>                               uint16_t media_type,</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>                               <span class="keywordtype">int</span> maxage,</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>                               <span class="keywordtype">size_t</span> length,</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>                               <span class="keyword">const</span> <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>* data);</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span><span class="preprocessor">#endif </span><span class="comment">/* COAP_BLOCK_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aencode_8h_html"><div class="ttname"><a href="encode_8h.html">encode.h</a></div></div>
<div class="ttc" id="agroup__block_html_ga0462e5c93460d2df1c60611188192524"><div class="ttname"><a href="group__block.html#ga0462e5c93460d2df1c60611188192524">coap_write_block_opt</a></div><div class="ttdeci">int coap_write_block_opt(coap_block_t *block, uint16_t type, coap_pdu_t *pdu, size_t data_length)</div><div class="ttdoc">Writes a block option of type type to message pdu.</div><div class="ttdef"><b>Definition</b> <a href="block_8c_source.html#l00074">block.c:74</a></div></div>
<div class="ttc" id="agroup__block_html_ga0a90438f60d08abd88da955ec895cedb"><div class="ttname"><a href="group__block.html#ga0a90438f60d08abd88da955ec895cedb">coap_add_block</a></div><div class="ttdeci">int coap_add_block(coap_pdu_t *pdu, unsigned int len, const uint8_t *data, unsigned int block_num, unsigned char block_szx)</div><div class="ttdoc">Adds the block_num block of size 1 &lt;&lt; (block_szx + 4) from source data to pdu.</div><div class="ttdef"><b>Definition</b> <a href="block_8c_source.html#l00135">block.c:135</a></div></div>
<div class="ttc" id="agroup__block_html_ga38c1e9829062e3e2ce621641f1ae59c5"><div class="ttname"><a href="group__block.html#ga38c1e9829062e3e2ce621641f1ae59c5">coap_add_data_blocked_response</a></div><div class="ttdeci">void coap_add_data_blocked_response(struct coap_resource_t *resource, struct coap_session_t *session, coap_pdu_t *request, coap_pdu_t *response, const coap_binary_t *token, uint16_t media_type, int maxage, size_t length, const uint8_t *data)</div><div class="ttdoc">Adds the appropriate part of data to the response pdu.</div><div class="ttdef"><b>Definition</b> <a href="block_8c_source.html#l00152">block.c:152</a></div></div>
<div class="ttc" id="agroup__block_html_ga714d943bd85123de1b8b6f86ec204a69"><div class="ttname"><a href="group__block.html#ga714d943bd85123de1b8b6f86ec204a69">coap_get_block</a></div><div class="ttdeci">int coap_get_block(coap_pdu_t *pdu, uint16_t type, coap_block_t *block)</div><div class="ttdoc">Initializes block from pdu.</div><div class="ttdef"><b>Definition</b> <a href="block_8c_source.html#l00046">block.c:46</a></div></div>
<div class="ttc" id="agroup__block_html_gaa67d14fa889f79afee9762dab7fc83e4"><div class="ttname"><a href="group__block.html#gaa67d14fa889f79afee9762dab7fc83e4">coap_more_blocks</a></div><div class="ttdeci">COAP_STATIC_INLINE int coap_more_blocks(size_t data_len, unsigned int num, uint16_t szx)</div><div class="ttdoc">Checks if more than num blocks are required to deliver data_len bytes of data for a block size of 1 &lt;...</div><div class="ttdef"><b>Definition</b> <a href="block_8h_source.html#l00068">block.h:68</a></div></div>
<div class="ttc" id="agroup__block_html_gaac6c90297abc6e2da80a6212b0d10e99"><div class="ttname"><a href="group__block.html#gaac6c90297abc6e2da80a6212b0d10e99">coap_opt_block_num</a></div><div class="ttdeci">unsigned int coap_opt_block_num(const coap_opt_t *block_opt)</div><div class="ttdoc">Returns the value of field num in the given block option block_opt.</div><div class="ttdef"><b>Definition</b> <a href="block_8c_source.html#l00027">block.c:27</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gaac65919c93f7047b687d33af9672b3ea"><div class="ttname"><a href="group__opt__filter.html#gaac65919c93f7047b687d33af9672b3ea">coap_opt_length</a></div><div class="ttdeci">uint16_t coap_opt_length(const coap_opt_t *opt)</div><div class="ttdoc">Returns the length of the given option.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00249">option.c:249</a></div></div>
<div class="ttc" id="agroup__opt__filter_html_gaec4e944d39722779cac610ed22ee09db"><div class="ttname"><a href="group__opt__filter.html#gaec4e944d39722779cac610ed22ee09db">coap_opt_value</a></div><div class="ttdeci">const uint8_t * coap_opt_value(const coap_opt_t *opt)</div><div class="ttdoc">Returns a pointer to the value of the given option.</div><div class="ttdef"><b>Definition</b> <a href="option_8c_source.html#l00286">option.c:286</a></div></div>
<div class="ttc" id="alibcoap_8h_html_a58b4446dccd0b8c21b3532ef6b77a57d"><div class="ttname"><a href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a></div><div class="ttdeci">#define COAP_STATIC_INLINE</div><div class="ttdef"><b>Definition</b> <a href="libcoap_8h_source.html#l00038">libcoap.h:38</a></div></div>
<div class="ttc" id="aoption_8h_html"><div class="ttname"><a href="option_8h.html">option.h</a></div><div class="ttdoc">Helpers for handling options in CoAP PDUs.</div></div>
<div class="ttc" id="aoption_8h_html_a963ad4994625360a5ac70d9df2ab5412"><div class="ttname"><a href="option_8h.html#a963ad4994625360a5ac70d9df2ab5412">coap_opt_t</a></div><div class="ttdeci">uint8_t coap_opt_t</div><div class="ttdoc">Use byte-oriented access methods here because sliding a complex struct coap_opt_t over the data buffe...</div><div class="ttdef"><b>Definition</b> <a href="option_8h_source.html#l00025">option.h:25</a></div></div>
<div class="ttc" id="apdu_8h_html"><div class="ttname"><a href="pdu_8h.html">pdu.h</a></div><div class="ttdoc">Pre-defined constants that reflect defaults for CoAP.</div></div>
<div class="ttc" id="astructcoap__binary__t_html"><div class="ttname"><a href="structcoap__binary__t.html">coap_binary_t</a></div><div class="ttdoc">Coap binary data definition.</div><div class="ttdef"><b>Definition</b> <a href="str_8h_source.html#l00043">str.h:43</a></div></div>
<div class="ttc" id="astructcoap__block__t_html"><div class="ttname"><a href="structcoap__block__t.html">coap_block_t</a></div><div class="ttdoc">Structure of Block options.</div><div class="ttdef"><b>Definition</b> <a href="block_8h_source.html#l00036">block.h:36</a></div></div>
<div class="ttc" id="astructcoap__block__t_html_a601d49b58bb18aa216e7bc5410076af9"><div class="ttname"><a href="structcoap__block__t.html#a601d49b58bb18aa216e7bc5410076af9">coap_block_t::num</a></div><div class="ttdeci">unsigned int num</div><div class="ttdoc">block number</div><div class="ttdef"><b>Definition</b> <a href="block_8h_source.html#l00037">block.h:37</a></div></div>
<div class="ttc" id="astructcoap__block__t_html_aaeb4409b7a94cc0de61ea7657996d329"><div class="ttname"><a href="structcoap__block__t.html#aaeb4409b7a94cc0de61ea7657996d329">coap_block_t::szx</a></div><div class="ttdeci">unsigned int szx</div><div class="ttdoc">block size</div><div class="ttdef"><b>Definition</b> <a href="block_8h_source.html#l00039">block.h:39</a></div></div>
<div class="ttc" id="astructcoap__block__t_html_ab853b0f192d874e5c0fc5d054348731d"><div class="ttname"><a href="structcoap__block__t.html#ab853b0f192d874e5c0fc5d054348731d">coap_block_t::m</a></div><div class="ttdeci">unsigned int m</div><div class="ttdoc">1 if more blocks follow, 0 otherwise</div><div class="ttdef"><b>Definition</b> <a href="block_8h_source.html#l00038">block.h:38</a></div></div>
<div class="ttc" id="astructcoap__pdu__t_html"><div class="ttname"><a href="structcoap__pdu__t.html">coap_pdu_t</a></div><div class="ttdoc">structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00285">pdu.h:285</a></div></div>
<div class="ttc" id="astructcoap__resource__t_html"><div class="ttname"><a href="structcoap__resource__t.html">coap_resource_t</a></div><div class="ttdef"><b>Definition</b> <a href="resource_8h_source.html#l00069">resource.h:69</a></div></div>
<div class="ttc" id="astructcoap__session__t_html"><div class="ttname"><a href="structcoap__session__t.html">coap_session_t</a></div><div class="ttdef"><b>Definition</b> <a href="coap__session_8h_source.html#l00056">coap_session.h:56</a></div></div>
<div class="ttc" id="authash_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition</b> <a href="uthash_8h_source.html#l00079">uthash.h:79</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="block_8h.html">block.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
